package com.jmxcfc.blfsc.common.sign.enums;

/**
 * 签署类型(1:签署个人签名企业签名、2:只签署企业签名、3:只签署个人签名)
 *
 * @author zhuyiping
 */
public enum SignType {

    TYPE_1("1", "签署个人签名企业签名"),
    TYPE_2("2", "只签署企业签名"),
    TYPE_3("3", "只签署个人签名"),
    ;

    private String type;
    private String desc;


    SignType(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public String type() {
        return this.type;
    }

    public String desc() {
        return this.desc;
    }

    public static SignType getEnumByType(String type) {
        SignType[] instances = SignType.values();
        for (SignType instance : instances) {
            if (instance.type().equals(type)) {
                return instance;
            }
        }
        return null;
    }

}
